 <!DOCTYPE HTML>
<html>
<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="generator" content="editplus">
  <meta name="author" content="">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta id="viewport" name="viewport" content = "width=device-width,  initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="apple-itunes-app" content="app-id=425349261"/>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <link href="/css/style.css"  rel="stylesheet" type="text/css" />
  <script src="/js/jquery.js" type="text/javascript"></script>
  <script>
  	$(function(){
  		var ops = "";
  		for(var i=0;i<14;i++){
  			ops+=nextDay(i);
  		}
  		$("#orderDate").append(ops);
  	})
  	//明天
  	function nextDay(day_num){
  		var dd = new Date();
	    dd.setDate(dd.getDate()+day_num);//获取day_num天后的日期
	    var y = dd.getFullYear();
	    var m = dd.getMonth()+1;//获取当前月份的日期
	    if(m<10) m="0"+m;
	    var d = dd.getDate();
	    if(d<10) d="0"+d;
	    
	    var week; 
		if(dd.getDay()==0)          week="周日"
		if(dd.getDay()==1)          week="周一"
		if(dd.getDay()==2)          week="周二" 
		if(dd.getDay()==3)          week="周三"
		if(dd.getDay()==4)          week="周四"
		if(dd.getDay()==5)          week="周五"
		if(dd.getDay()==6)          week="周六"
	    var dstr=y+"-"+m+"-"+d;
	    return "<option value='"+dstr+"'>"+dstr+" "+week+"</option>"
  	}
  	
function subFm(){
	$("#front_time").val( $("#orderDate").val()+" "+$("#orderTime").val()+":00");
	return true;
}

  </script>
 </head>
 <body>
 <div id="container">
	<div id="header" style="position: relative;">
		<div id="left">
			<a href="javascript:" onClick="window.history.back()">
			<img src="../images/transparent.png" class="return" />
			</a>
			<h1>${session.session_shop.name!}</h1>
		</div>
		<div id="right"><a href="/"></a></div>
	</div>
    <form action="/front/save" onSubmit="return subFm()" method="post">
    <input type="hidden" name="frontOrder.front_time" id="front_time"/>
	<div id="content">
		<ul class="myOrderInfo">
			<li>
			就餐时间：
			<select id="orderDate"> </select>
			<select id="orderTime">
					<option value="11:30" selected>11:30</option>
					<option value="11:45">11:45</option>
					<option value="12:00">12:00</option>
					<option value="12:15">12:15</option>
					<option value="12:30">12:30</option>
					<option value="12:45">12:45</option>
					<option value="13:00">13:00</option>
					<option value="13:15">13:15</option>
					<option value="13:30">13:30</option>
					<option value="13:45">13:45</option>
					<option value="14:00">14:00</option>
					<option value="14:15">14:15</option>
					<option value="14:30">14:30</option>
					<option value="17:00">17:00</option>
					<option value="17:15">17:15</option>
					<option value="17:30">17:30</option>
					<option value="17:45">17:45</option>
					<option value="18:00">18:00</option>
					<option value="18:15">18:15</option>
					<option value="18:30">18:30</option>
					<option value="18:45">18:45</option>
					<option value="19:00">19:00</option>
					<option value="19:15">19:15</option>
					<option value="19:30">19:30</option>
				</select>
			</li>
			<li>
				您的姓名：<input type="text" name="frontOrder.customer_name" id="name" value="" size="10">
				<input name="frontOrder.customer_sex" type="radio" class="radio" value="0" checked="CHECKED">先生
				<input type="radio" name="frontOrder.customer_sex" class="radio" value="1" >女士
			</li>
			<li>
				座位类型:
				<input name="frontOrder.seat_type" type="radio" class="radio" value="1" checked="CHECKED">座位
				<input type="radio" name="frontOrder.seat_type" class="radio" value="2" >包间
			</li>
			<li>
				联系电话：<input type="text" name="frontOrder.customer_phone" id="tel" value="" size="20">
			</li>
			<li>
				就餐人数&nbsp;:
				<select name="frontOrder.people_num" >
					<option value="2">2</option>
					<option value="3">3</option>
					<option value="4">4</option>
					<option value="5">5</option>
					<option value="6">6</option>
					<option value="7">7</option>
					<option value="8">8</option>
					<option value="9">9</option>
					<option value="10">10</option>
					<option value="10~20">10~20</option>
					<option value="10~20">20~30</option>
					<option value="30以上">30以上</option>
				</select>
			</li>
			<li>
				其他要求：<textarea name="frontOrder.remark" rows="3" cols="35" ></textarea>
			</li>
			<li align="center">
				<input type="submit" class="submitOrder" value="提 交 订 单">
			</li>
		</ul>
	</div>
    </form>
 </div>
 <script type="text/javascript">

 </script>
 </body>
</html>
